package CouistotEnum;
public enum Status {
	ENREGISTREE ("ENREGISTREE"),
	EN_COURS ("EN COURS"),
	PRETE ("PRETE"),
	SERVIE ("SERVIE");
	
	//Status.valueOf("String")
	
	private final String name;       

    private Status(String s) {
        name = s;
    }

    public boolean equalsName(String otherName){
        return (otherName == null)? false:name.equals(otherName);
    }

    public String toString(){
       return name;
    }

	}

